home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / pcr / pcr4_4.lha / DIST / boot / INCLUDE / xr / CommandLinePrivate.h < prev    next >
C/C++ Source or Header  |  1990-04-10  |  2KB  |  82 lines

  1. /* begincopyright
  2.   Copyright (c) 1988 Xerox Corporation. All rights reserved.
  3.   Use and copying of this software and preparation of derivative works based
  4.   upon this software are permitted. Any distribution of this software or
  5.   derivative works must comply with all applicable United States export
  6.   control laws. This software is made available AS IS, and Xerox Corporation
  7.   makes no warranty about the software, its performance or its conformity to
  8.   any specification. Any person obtaining a copy of this software is requested
  9.   to send their name and post office or electronic mail address to
  10.   PCRCoordinator.pa@xerox.com, or to:
  11.     PCR Coordinator
  12.     Xerox PARC
  13.     3333 Coyote Hill Rd.
  14.     Palo Alto, CA 94304
  15.   endcopyright */
  16.  
  17. /*
  18.  * CommandLinePrivate.h
  19.  *
  20.  * PCR command line interface private defs.
  21.  *
  22.  * Demers, April 10, 1990 2:24:11 pm PDT
  23.  */
  24.  
  25.  
  26. #ifndef _XR_COMMAND_LINE_PRIVATE_
  27. #define _XR_COMMAND_LINE_PRIVATE_ 1
  28.  
  29. #ifndef _XR_COMMAND_LINE_
  30. #   include "xr/CommandLine.h"
  31. #endif
  32.  
  33. #ifndef _XR_THREADS_
  34. #   include "xr/Threads.h"
  35. #endif
  36.  
  37.  
  38.  
  39. typedef struct XR_CLHandleRep {
  40.     /* lock */
  41.         struct XR_MLRep clh_ml;
  42.     /* parameters */
  43.         int clh_nestLevel;
  44.         bool clh_minusIsDelim;
  45.     /* strings buffer */
  46.         int clh_argc;
  47.         int clh_argcLim;
  48.         char **clh_argv;
  49.     /* input proc */
  50.         XR_MesaProc clh_charProc;
  51.         int clh_peekc;
  52.     /* prompt proc (interactive use) */
  53.         XR_MesaProc clh_promptProc;
  54. } *XR_CLHandleInner;
  55. /*
  56.     Handle to a command line.
  57. */
  58.  
  59.  
  60. typedef struct XR_CLRegistrationRep {
  61.     char *clr_key;
  62.     bool clr_caseSensitive;
  63.     char *clr_helpMsg;
  64.     XR_MesaProc clr_proc;
  65.     struct XR_CLRegistrationRep *clr_next;
  66. } *XR_CLRegistrationInner;
  67. /*
  68.     Handle to a registered CLProc.
  69. */
  70.  
  71.  
  72. typedef struct XR_CLProcsHandleRep {
  73.     XR_CLRegistrationInner clph_registrations;
  74. } * XR_CLProcsHandleInner;
  75. /*
  76.     Handle to collection of registered CLProcs.
  77. */
  78.  
  79.  
  80.  
  81. #endif
  82.